package test2;

public class main {
    public static void main(String[] args) {
        Tunnel tunnel = new Tunnel();
        for (int i = 1;i<=10;i++){
            String personName = "Person"+i;
            Thread peopleThread = new Thread(()->
                    tunnel.passThrough(personName),personName);
            peopleThread.start();
        }
    }
}
